]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
endSessionDialog: Don't allow focusing inhibitor items
authorJonas Dreßler <verdre@v0yd.nl>
Fri, 18 Oct 2019 21:19:05 +0000 (23:19 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 20 Jan 2020 13:46:39 +0000 (14:46 +0100)
Those items are not interactive, so it doesn't make sense to be able to
set key-focus to them, disallow that.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/935

js/ui/endSessionDialog.js

index d9f78de777d5e9eef2c7436e7d2d31b8b05f7930..df44c935dffb5f2c688e587d42dd4ec821fdfbdb 100644 (file)
@@ -594,8 +594,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
     }
 
     _constructListItemForApp(inhibitor, app) {
-        let actor = new St.BoxLayout({ style_class: 'end-session-dialog-app-list-item',
-                                       can_focus: true });
+        let actor = new St.BoxLayout({ style_class: 'end-session-dialog-app-list-item' });
         actor.add(app.create_icon_texture(_ITEM_ICON_SIZE));
 
         let textLayout = new St.BoxLayout({ vertical: true,
@@ -653,8 +652,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
         else
             userLabelText = userName;
 
-        let actor = new St.BoxLayout({ style_class: 'end-session-dialog-session-list-item',
-                                       can_focus: true });
+        let actor = new St.BoxLayout({ style_class: 'end-session-dialog-session-list-item' });
         actor.add(avatar);
 
         let nameLabel = new St.Label({ text: userLabelText,